package com.class5.springboot.entity;

import com.class5.springboot.frame.repo.entity.SuperEntity;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * org_info 门店表 
 **/
@SuppressWarnings("serial")
public class OrgInfo extends SuperEntity implements Serializable {

    /**主键(id)*/
    private Long id;

    /**门店名称(name)*/
    private String name;

    /**电话(phone)*/
    private String phone;

    /**地址(address)*/
    private String address;

    /**店长名称(manager)*/
    private String manager;

    /**创建时间(create_time)*/
    private Timestamp createTime;

    /**更新时间(modify_time)*/
    private Timestamp modifyTime;

    public OrgInfo() {
    }

    public OrgInfo(Long id, Timestamp createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public OrgInfo setId(Long id) {
        addOriginalData("id", this.id, id);
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public OrgInfo setName(String name) {
        addOriginalData("name", this.name, name);
        this.name = name;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public OrgInfo setPhone(String phone) {
        addOriginalData("phone", this.phone, phone);
        this.phone = phone;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public OrgInfo setAddress(String address) {
        addOriginalData("address", this.address, address);
        this.address = address;
        return this;
    }

    public String getManager() {
        return manager;
    }

    public OrgInfo setManager(String manager) {
        addOriginalData("manager", this.manager, manager);
        this.manager = manager;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public OrgInfo setCreateTime(Timestamp createTime) {
        addOriginalData("create_time", this.createTime, createTime);
        this.createTime = createTime;
        return this;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public OrgInfo setModifyTime(Timestamp modifyTime) {
        addOriginalData("modify_time", this.modifyTime, modifyTime);
        this.modifyTime = modifyTime;
        return this;
    }

    @Override()
    public String toString() {
        return this.getClass().getName() + ":{id:" + id + ",name:" + name + ",phone:" + phone + ",address:" + address + ",manager:" + manager + ",createTime:" + createTime + ",modifyTime:" + modifyTime + "}";
    }

    @Override()
    public boolean equals(Object arg0) {
        return ((OrgInfo) arg0).getId().equals(id);
    }

    @Override()
    public int hashCode() {
        return id == null ? 0 : id.hashCode();
    }
}
